package com.rongke.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @FlowDetail
 * @交易流水明细(flow_detail)
 * @version : Ver 1.0
 */
@TableName("flow_detail")
public class FlowDetail implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:交易流水明细表
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private java.lang.Long id;

	/**
	 * @备注:流水类型
	 * @字段:flow_type VARCHAR(11)
	 */
	private java.lang.Integer flowType;

	/**
	 * @备注:交易额
	 * @字段:money DECIMAL(11)
	 */
	private java.math.BigDecimal money;

	/**
	 * @备注:用户
	 * @字段:muser_id BIGINT(19)
	 */
	private java.lang.Long muserId;

	/**
	 * @备注:支付方式
	 * @字段:pay_type VARCHAR(11)
	 */
	private java.lang.Integer payType;

	/**
	 * @备注:状态
	 * @字段:status VARCHAR(11)
	 */
	private java.lang.Integer status;
	/**
	 * @备注:订单编码
	 * @字段:status VARCHAR(11)
	 */
	private java.lang.String orderNumber;

	private java.lang.String title;


	/**
	 * @备注:创建时间
	 * @字段:gmt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date gmtDatetime;

	/**
	 * @备注:更新时间
	 * @字段:upt_datetime DATETIME(19)
	 */
	@JsonSerialize(using=DateJsonSerializer.class)
	@JsonDeserialize(using=DateJsonDeserializer.class)
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
	private java.util.Date uptDatetime;

	private java.lang.Long transferInMuser;//转入人id
	private java.lang.Long transferOutMuser;//转出人id
	public FlowDetail(){
	}

	public FlowDetail(
		java.lang.Long id
	){
		this.id = id;
	}


	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public void setId(java.lang.Long id) {
		this.id = id;
	}

	public java.lang.Long getId() {
		return this.id;
	}

	public Date getGmtDatetime() {
		return gmtDatetime;
	}

	public void setGmtDatetime(Date gmtDatetime) {
		this.gmtDatetime = gmtDatetime;
	}

	public Date getUptDatetime() {
		return uptDatetime;
	}

	public void setUptDatetime(Date uptDatetime) {
		this.uptDatetime = uptDatetime;
	}

	public Integer getFlowType() {
		return flowType;
	}

	public void setFlowType(Integer flowType) {
		this.flowType = flowType;
	}

	public void setMoney(java.math.BigDecimal money) {
		this.money = money;
	}

	public java.math.BigDecimal getMoney() {
		return this.money;
	}

	public Long getTransferInMuser() {
		return transferInMuser;
	}

	public void setTransferInMuser(Long transferInMuser) {
		this.transferInMuser = transferInMuser;
	}

	public Long getTransferOutMuser() {
		return transferOutMuser;
	}

	public void setTransferOutMuser(Long transferOutMuser) {
		this.transferOutMuser = transferOutMuser;
	}

	public void setMuserId(java.lang.Long muserId) {
		this.muserId = muserId;
	}

	public java.lang.Long getMuserId() {
		return this.muserId;
	}


	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Integer getStatus() {
		return status;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
